<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    // let a=1
    // let b=2
    // const arr=[a,b]
    // [b,a]=[a,b]

    // const a=[1,2,24,5]
    // const [b,c,d]=a
    // console.log(b,c,d);
    // const{e,f,g,h,i}=a
    // console.log(e,f,g,h,i);
    // const [j,,,p]=a
    // console.log(j,p);

    const msg = {
      "code": 200,
      "msg": "获取新闻列表成功",
      "data": [
        {
          "id": 1,
          "title": "5G商用自己，三大运用商收入下降",
          "count": 58
        },
        {
          "id": 2,
          "title": "国际媒体头条速览",
          "count": 56
        },
        {
          "id": 3,
          "title": "乌克兰和俄罗斯持续冲突",
          "count": 1669
        },

      ]
    }
    const {code,msg:message,data:[{id,title,count},item]}=msg

    function fu({code,msg,data}){
      console.log(code,msg,data);
    }
    fu(msg)
  </script>
</body>
</html>